package com.zsrt.day20161011;
/**
 * 
 * @author Administrator 算数运算符
 *
 */
public class CalDemo {
	public static void main(String[] args) {
		//  + - * /
		
	/*  int a = 11;
		int b = 5;
		System.out.println(a+b);
		System.out.println(a-b);
		System.out.println(a*b);
		System.out.println(a/b);
		
		//求模 % 求余数的值
		System.out.println(a%b); */
		
		int d = 46;
		/*int d = c %=2; // d =1 c =1
		int e = c *=2;  
		int f = c /=2;
		int g = c +=2;
		int h = c -=2;*/
		/*int week = d/7;
		int shenyu = d%7;*/
		System.out.println("d的周数是："+(d/7));
		System.out.println("剩余天数是："+(d%7));
	/*	System.out.println(e); 
		System.out.println(f); 
		System.out.println(g); 
		System.out.println(h); */
		
		double r = 1.5;
		//double p = 3.14;
		double mj = r*r*3.14;
		System.out.println("圆的面积是"+mj); 
		
		
	/*	int  a1 = 100;
		int  a2 = a1++;
		int  a3 = ++a2;
		int  a4 = a3++;
		System.out.println(a1);
		System.out.println(a2);
		System.out.println(a3);
		System.out.println(a4); */
		
		
	}

}
